home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor2
/
bit.doc
< prev
next >
Wrap
Internet Message Format
|
1995-03-31
|
2KB
Date: January 10, 1992
BIT - Directory
Hex String Bit Operators
Copyright 1992 Brian Maguire
All Rights Reserved
DISCLAIMERS
BIT and this manual are presented without warranties, expressed
or implied. The author makes no guarantee as to the fitness of
this software.
BIT can be copied freely provided the software, including this
manual, is copied in its entirety. The user cannot be charged,
in whole or in part, except for the cost of reproduction. No
part of this package may be used for commercial purposes without
written permission from the author.
SUMMARY
The directory BIT contains three programs and one subroutine.
The programs SBIT, CBIT and ?BIT all operate on one bit in a hex
string (binary integer). Because these programs were originally
created to manipulate a hex string that contained flags used in
an application they function differently than the built-in binary
integer commands. Unlike the usual commands found in the BASE
menu on the 48, which only operate on hex strings that are 16
nibbles long, these programs will operate on a hex string of any
length.
SBIT hex string, real -> hex string
sets one bit in a hex string
CBIT hex string, real -> hex string
clears one bit in a hex string
?BIT hex string real -> real (0 or 1)
tests one bit in a hex string
Enjoy,
Brian Maguire
139 Kingsbury
Dearborn, MI 48128